Calibration method for rotation angle calculation device, calibration device for rotation angle calculation device, rotation angle calculation device, motor control device, electric actuator product, and electric power steering device

ABSTRACT

A calibration method in which, a rotation angle calculation device calculates a rotation angle based on a detection signal of a sensor, transmits rotation angle data indicating the rotation angle to a calibration device, and transmits time difference data relating to a time difference after having captured the detection signal until transmitting the rotation angle data to the calibration device, and in which the calibration device measures a rotation angle, clocks a measurement time at which the rotation angle is measured and a transmission time of transmitting or receiving the rotation angle data, and acquires calibration data of the rotation angle data by comparing the rotation angle measured at a time obtained by going back in time from the transmission time by the time difference after having captured the detection signal until transmitting the rotation angle data and the rotation angle data with each other.

TECHNICAL FIELD

The present invention relates to a calibration method for a rotationangle calculation device, a calibration device for a rotation anglecalculation device, a rotation angle calculation device, a motor controldevice, an electric actuator product, and an electric power steeringdevice.

BACKGROUND ART

Rotation angle calculation devices that calculate a rotation angle of arotating body, based on a detection signal output from a sensoraccording to rotation of the rotating body have been known. For example,in PTL 1 described below, an angle detection device including a sensorunit that detects a rotation angle of. a rotating body and outputs a sinsignal and a cos signal is disclosed.

When using such a rotation angle calculation device, it is preferable tocalibrate the rotation angle calculation device by comparing a rotationangle calculated from output signals from the sensor and measurementdata of a rotation angle of the rotating body that were separatelymeasured with each other.

As a technology for comparing detection signals acquired from differentsensors with each other, an invention described in PTL 2 described belowhas been known. In PTL 2, a time stamp assignment unit configured toassign a time stamp ATi to a detection signal Ai from a sensor A andassign a time stamp BTj to a detection signal Bj from a sensor B, asynchronous signal search unit configured to search a storage unit for adetection signal Bj that is best synchronized with the detection signalAi, based on the time stamps ATi and BTi, and a vernier calculationmeans configured to perform calculation and vernier calculation of anangular difference between synchronous signals searched for by thesynchronous signal search unit are described.

CITATION LIST Patent Literature

PTL 1: JP 2018-185198 A

PTL 2: JP 2014-210472 A

SUMMARY OF INVENTION Technical Problem

When the rotation angle calculation device is calibrated usingmeasurement data measured by an external measurement device separatefrom the rotation angle calculation device, it is required to securesynchronization between a rotation angle calculated by the rotationangle calculation device and measurement data measured by the externalmeasurement device.

When synchronization is to be secured by comparison between time stampsas in PTL 2 described above, it is not possible to securesynchronization between a rotation angle calculated by the rotationangle calculation device and measurement data measured by the externalmeasurement device unless a clocking means in the rotation anglecalculation device and a clocking means in the external measurementdevice are synchronous with each other.

The present invention has been made in consideration of theabove-described problems, and an object of the present invention is togenerate calibration data for a rotation angle calculation device bysecuring synchronization between a rotation angle calculated by therotation angle calculation device and a rotation angle measured by anexternal measurement device separate from the rotation angle calculationdevice.

Solution to Problem

According to an aspect of the present invention, there is provided acalibration method for a rotation angle calculation device configured tocalculate a rotation angle of a rotating body, based on a detectionsignal output from a sensor depending on rotation of the rotating body,the method including: the rotation angle calculation device calculatinga rotation angle of the rotating body, based on the detection signal;transmitting rotation angle data indicating the rotation angle from therotation angle calculation device to a calibration device; transmittingtime difference data relating to a time difference after having capturedthe detection signal from the sensor until transmitting the rotationangle data from the rotation angle calculation device to the calibrationdevice; the calibration device measuring a rotation angle of therotating body; clocking a measurement time at which the calibrationdevice measures a rotation angle of the rotating body and a transmissiontime at which the rotation angle data are transmitted or received, usingthe calibration device; and acquiring calibration data of the rotationangle data by comparing a rotation angle of the rotating body measuredby the calibration device at a time obtained by going back in time fromthe transmission time by the time difference and the rotation angle datawith each other.

According to another aspect of the present invention, there is provideda calibration device for a rotation angle calculation device configuredto calculate a rotation angle of a rotating body, based on a detectionsignal output from a sensor depending on rotation of the rotating body,including: a reception unit configured to receive, from the rotationangle calculation device, rotation angle data indicating a rotationangle of the rotating body calculated based on the detection signal andtime difference data relating to a time difference after the rotationangle calculation device having captured the detection signal from thesensor until transmitting the rotation angle data; a rotation anglemeasurement unit configured to measure a rotation angle of the rotatingbody; a clocking unit configured to clock a measurement time at whichthe rotation angle measurement unit measures a rotation angle of therotating body and a transmission time at which the rotation angle dataare transmitted or received; and a calibration data generation unitconfigured to generate calibration data of the rotation angle data bycomparing a rotation angle of the rotating body measured by the rotationangle measurement unit at a time obtained by going back in time from thetransmission time by the time difference and the rotation angle datawith each other.

According to still another aspect of the present invention, there isprovided a rotation angle calculation device including: a sensorconfigured to output a detection signal depending on rotation of arotating body; a rotation angle calculation unit configured to calculatea rotation angle of the rotating body, based on the detection signal; areception unit configured to receive calibration data for calibration ofa rotation angle of the rotating body calculated by the rotation anglecalculation unit; a storage unit configured to store the receivedcalibration data; a correction unit configured to correct a rotationangle of the rotating body calculated by the rotation angle calculationunit with the calibration data stored in the storage unit; and atransmission unit configured to transmit rotation angle data indicatingthe rotation angle calculated by the rotation angle calculation unit andnot corrected by the correction unit and to also transmit timedifference data relating to a time difference after having captured thedetection signal from the sensor until transmitting the rotation angledata.

According to yet another aspect of the present invention, there isprovided a motor control device including: the rotation anglecalculation device described above configured to calculate a rotationangle of a rotation shaft of a motor as the rotating body; and a drivingunit configured to drive the motor according to a rotation angle of therotating shaft corrected by the correction unit.

According to a further aspect of the present invention, there isprovided an electric actuator product including: the motor controldevice described above; and a motor controlled by the motor controldevice.

According to a still further aspect of the present invention, there isprovided an electric power steering device including: the motor controldevice described above; and a motor controlled by the motor controldevice, wherein a steering assist force is provided to a steering systemof a vehicle by the motor.

Advantageous Effects of Invention

According to the present invention, it is possible to generatecalibration data for a rotation angle calculation device by securingsynchronization between a rotation angle calculated by the rotationangle calculation device and a rotation angle measured by an externalmeasurement device separate from the rotation angle calculation device.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic configuration diagram of an example of acalibration system for a rotation angle calculation device of anembodiment;

FIG. 2 is an exploded view illustrative of an overview of an example ofthe rotation angle calculation device of the embodiment;

FIG. 3 is a schematic configuration diagram of the rotation anglecalculation device of the embodiment;

FIG. 4 is an explanatory diagram of an example of a functionalconfiguration of a control device in FIG. 3;

FIG. 5 is an explanatory diagram of an example of a functionalconfiguration of a rotation angle calculation unit in FIG. 4;

FIG. 6 is an explanatory diagram of an example of calibration data;

FIG. 7 is an explanatory diagram of an example of a format oftransmission data that a transmission data generation unit in FIG. 4generates;

FIG. 8 is an explanatory diagram of an example of a functionalconfiguration of an external measurement device in FIG. 1;

FIG. 9 is a timing diagram illustrative of an example of operation ofthe control device and the external measurement device;

FIG. 10 is a flowchart of an example of a calibration method for therotation angle calculation device of the embodiment; and

FIG. 11 is a configuration diagram illustrative of an overview of anexample of an electric power steering device including the rotationangle calculation device of the embodiment.

DESCRIPTION OF EMBODIMENTS

Embodiments of the present invention will be described in detail withreference to the drawings. Note that the embodiments of the presentinvention to be described below indicate devices and methods to embodythe technical idea of the present invention by way of example, and thetechnical idea of the present invention does not limit the constitution,arrangements, and the like of the constituent components to thosedescribed below. The technical idea of the present invention can besubjected to a variety of alterations within the technical scopeprescribed by the claims described in CLAIMS.

(Configuration)

FIG. 1 is now referred to. A calibration system 1 of this embodimentcalibrates a rotation angle calculation device configured to calculate arotation angle of a rotation shaft 11 of a motor 10, the rotation shaft11 being a rotating body. Note that the target of the present inventionis not limited to the rotation angle calculation device configured tocalculate a rotation angle of the rotation shaft 11 of the motor 10. Thepresent invention is applicable to rotation angle calculation devicesconfigured to calculate rotation angles of a variety of rotating bodies.

The calibration system 1 includes a rotation angle calculation devicethat is calibrated by the calibration system 1 and a calibration device40. The rotation angle calculation device includes a sensor unit 20 anda control device 30.

The sensor unit 20 outputs a detection signal depending on rotation ofthe rotation shaft 11 to the control device 30. FIG. 2 is now referredto. The sensor unit 20 includes a magnet 21, a circuit board 22, and asupport member 23.

The magnet 21 is fixed to an end 14 of the rotation shaft 11 of themotor 10 on the opposite side to an output end 12 thereof and hasdifferent magnetic poles (S-poles and N-poles) arranged along thecircumferential direction of the rotation shaft 11.

On the circuit board 22, a magnetic resistance (MR) sensor element(integrated circuit) 24 is mounted. A redundant system, with a pluralityof MR sensor elements mounted on the circuit board 22, configured toseparately calculate a rotation angle of the rotation shaft 11, based ondetection signals from each of the MR sensor elements may be configured.

The circuit board 22 is fixed to the support member 23 by means of anot-illustrated fixing means, such as a fastening screw and caulking. Inaddition, the support member 23 is similarly fixed to the motor 10 bymeans of a not-illustrated fixing means.

A position at which the circuit board 22 is fixed to the support member23 and a position at which the support member 23 is fixed to the motor10 are determined in such a way that, when the circuit board 22 is fixedto the support member 23 and the support member 23 is fixed to the motor10, the circuit board 22 is arranged between the support member 23 andthe motor 10 and the MR sensor element 24 comes close to the magnet 21.

This configuration causes the MR sensor element 24 to, when the magnet21 rotates in association with the rotation of the rotation shaft 11 ofthe motor 10, detect a change in magnetic flux of the magnet 21depending on a rotation angle and output a detection signal depending onthe rotation of the rotation shaft 11 of the motor 10.

For example, the MR sensor element 24 outputs a sine signal sinθm and acosine signal cosθm depending on a rotation angle θm of the rotationshaft 11 of the motor 10 as detection signals depending on the rotationof the rotation shaft 11 of the motor 10.

Note that the sensor that the rotation angle calculation device of thepresent invention uses is not limited to an MR sensor. The rotationangle calculation device of the present invention may detect a rotationangle θm of the rotation shaft 11 of the motor 10 by means of a sensorusing another type other than an MR sensor.

The support member 23 is, for example, a cover that covers the circuitboard 22. The support member 23, for example, has a recessed portionthat opens downward in FIG. 1, and the circuit board 22 is fixed insidethe recessed portion of the support member 23. When the support member23 is fixed to the motor 10, an opening portion of the recessed portionof the support member 23 is shielded by the motor 10 and the circuitboard 22 is housed inside an internal space that is defined by therecessed portion of the support member 23 and the motor 10. Thisconfiguration causes the circuit board 22 to be protected from impact orforeign objects from the outside.

The support member 23 may be formed of a metal having excellent thermalconductivity, such as an aluminum alloy, and may act as a heat sink. Thesupport member 23 may be a heat sink itself.

The control device 30, which is an electronic control unit (ECU) that isa separate entity from the sensor unit 20, is connected to the sensorunit 20 by means of a harness 25. Detection signals output from the MRsensor element 24 according to the rotation of the rotation shaft 11 ofthe motor 10 are transmitted to the control device 30 via the harness25.

The control device 30 calculates a rotation angle θm of the rotationshaft 11 of the motor 10, based on the detection signals detected by theMR sensor element 24 and controls a power semiconductor switchingelement according to the calculated rotation angle θm to drive the motor10.

FIG. 3 is now referred to. The control device 30 includes a processor31, such as a central processing unit (CPU) or a micro-processing unit(MPU), a storage device 32 that is a memory or the like, ananalog-digital, converters (ADCs) 33 and 34, a drive circuit 35, and acommunication interface (I/F) circuit 36.

Functions of the control device 30 that will be described below areachieved by, for example, the processor 31 executing computer programsstored in the storage device 32.

The control device 30 may be formed using dedicated hardware forperforming respective parts of information processing, which will bedescribed below, in addition to or in place of the processor 31.

For example, the control device 30 may include functional logic circuitsthat are set in a general-purpose semiconductor integrated circuit. Forexample, the control device 30 may have a programmable logic device(PLD), such as a field programmable gate array (FPGA), or the like.

As described above, the MR sensor element 24 detects a change inmagnetic flux of the magnet 21, which rotates in conjunction with therotation shaft 11 of the motor 10, and thereby outputs a sine signalSIN=sinθm and a cosine signal COS=cosθm depending on a rotation angle θmof the rotation shaft 11 of the motor 10.

The control device 30 reads a sine signal SIN and a cosine signal COSconverted to digital signals by the ADC 33 and the ADC 34.

The control device 30 calculates a detected angle θc of the rotationangle of the rotation shaft 11 of the motor 10, based on the sine signalSIN and the cosine signal COS. The detected angle θc is a value that istheoretically calculated based on the sine signal SIN and the cosinesignal COS and is a theoretical value before calibration.

The control device 30 receives calibration data Dc for calibrating thedetected angle θc from an external measurement device 43 in thecalibration device 40 illustrated in FIG. 1 via the communication I/Fcircuit 36.

The control device 30, by correcting the detected angle θc, which iscalculated based on the sine signal SIN and the cosine signal COS, basedon the calibration data Dc, which is received from the externalmeasurement device 43, calculates a rotation angle θm of the rotationshaft 11 of the motor 10.

The control device 30 controls the drive circuit 35 (such as aninverter) according to the calculated rotation angle θm to drive themotor 10.

With reference to FIG. 4, an example of a functional configuration ofthe control device 30 will be described.

The control device 30 includes a rotation angle calculation unit 50, acorrection unit 51, a driving signal generation unit 52, a clocking unit53, a transmission data generation unit 54, a transmission unit 55, areception unit 56, and a calibration data acquisition unit 57.

The rotation angle calculation unit 50 calculates a detected angle θc ofthe rotation angle of the rotation shaft 11 of the motor 10, based on asine signal SIN and a cosine signal COS converted to digital signals bythe ADC 33 and the ADC 34.

FIG. 5 is now referred to. The rotation angle calculation unit 50includes an adder 60, a subtracter 61, and a calculation unit 62.

The calculation unit 62 calculates a detected angle θc, based on anoutput (COS+SIN) of the adder 60 and an output (COS−SIN) of thesubtracter 61.

FIG. 4 is now referred to. The correction unit 51 reads calibration dataDc stored in the storage device 32, corrects the detected angle θc,based on the calibration data Dc, and thereby acquires a rotation angleθm of the rotation shaft 11 of the motor 10.

The calibration data Dc are data for correcting error (so-calledlinearity error) between an actual rotation angle θm that is a detectiontarget and the detected angle θc.

FIG. 6 is now referred to. The abscissa represents the actual rotationangle θm of the rotation shaft 11 of the motor 10, and the ordinaterepresents a reference angle θr (alternate long and short dash line)that serves as a reference when calibrating the detected angle θc andthe detected angle θc (solid line). The reference angle θr ideallycoincides with the actual rotation angle θm.

The calibration data Dc are, for example, data that are made by storingdifferences (θc−θr) between detected angles θc and reference angles θrin the storage device 32 in association with the detected angles θc.

FIG. 4 is now referred to. The correction unit 51 calculates a correctedrotation angle θr=θm by reading calibration data Dc=(θc−θr) from thestorage device 32, which are stored in association with the detectedangle θc, and subtracting the calibration data Dc from the detectedangle θc.

The driving signal generation unit 52 generates a driving signal thatcontrols the drive circuit 35, based on the corrected rotation angle θm,and outputs the generated driving signal to the drive circuit 35. Forexample, the driving signal generation unit 52 outputs a gate signalthat turns on and off a switching element installed in the drive circuit35.

With the above-described configuration, the control device 30 drives themotor 10 according to the rotation angle θm of the rotation shaft 11 ofthe motor 10.

The control device 30 has a mode of driving the motor 10 (hereinafter,referred to as “motor drive mode”) by causing the rotation anglecalculation unit 50, the correction unit 51, and the driving signalgeneration unit 52 to operate as described above as one of the operationmodes of the control device 30.

On the other hand, the control device 30 has, in addition to the motordrive mode, a node of outputting data (hereinafter, referred to as “dataoutput mode”) that indicate a detected angle θc that was calculated bythe rotation angle calculation unit 50 and has not been corrected yet bythe correction unit 51 as another operation mode of the control device30.

The data indicating the detected angle θc (hereinafter, sometimesreferred to as “rotation angle data Da”), which are output in the dataoutput mode, can be used for the calibration device 40, which isexternal to the control device 30, to generate calibration data Dc.

In the data output mode, the rotation angle calculation unit 50, theclocking unit 53, the transmission data generation unit 54, and thetransmission unit 55 operate.

The clocking unit 53 clocks time. For example, the clocking unit 53 mayclock an elapsed period from a predetermined point of time (for example,a point of time at which the operation mode of the control device 30 isswitched to the data output mode) as time or may clock the current timewhile constantly operating.

The transmission data generation unit 54 receives a timing signal Stthat indicates a timing at which the control device 30 captureddetection signals (a sine signal SIN and a cosine signal COS) from theMR sensor element 24.

For example, the timing signal St may be a signal indicating sample/holdtiming of the ADC 33 and the ADC 34. When a conversion period forconverting analog signals to digital signals by the ADC 33 and the ADC34 is sufficiently short, the timing signal St may be a signalindicating output timing of the ADC 33 and the ADC 34.

The transmission data generation unit 54 acquires a time that theclocking unit 53 clocked at a timing indicated by the timing signal Stas a capture time tc1 of detection signals from the MR sensor element24.

In addition, the transmission data generation unit 54 receives thedetected angle θc that the rotation angle calculation unit 50 calculatedand generates transmission data in which rotation angle data Daindicating the detected angle θc are stored. The transmission data thatthe transmission data generation unit 54 generated are transmitted tothe external measurement device 43 in the calibration device 40 via thecommunication I/F circuit 36 by the transmission unit 55.

For example, the transmission unit 55 may transmit the transmissiondata, using a predetermined controller area network (CAN) communicationprotocol for digital signals. The transmission data generation unit 54may generate transmission data in a predetermined data format inaccordance with the communication protocol.

An example of the data format of the transmission data is illustrated inFIG. 7. Each piece of transmission data has a data format that allowsrotation angle data Da and time difference data Dt to be stored in thesame frame. In addition, for example, the transmission data may includestatus information that indicates whether or not the rotation angle dataDa are usable data. Note that the status information is not essential.

When a redundant system is configured using a plurality of MP sensorelements, pieces of rotation angle data Da and pieces of time differencedata Dt corresponding to the respective MR sensor elements may be storedin the same frame or may be separately stored in a plurality of framesand transmitted. When a redundant system is configured using a pluralityof MR sensor elements, pieces of rotation angle data Da may betransmitted as angular differences with respect to a piece of rotationangle data Da of a preset MR sensor element. For example, in the case ofa redundant system composed of three systems, it is assumed thatrotation angle data of the first system, rotation angle data of thesecond system, and rotation angle data of the third system are 100degrees, 102 degrees, and 99 degrees, respectively. As the rotationangle data of the first system, 100 degrees may be transmitted, and, asthe rotation angle data of the second system and the third system, +2degrees and −1 degrees, which are differences from the rotation angledata of the first system, may be transmitted as rotation angle data,respectively. This configuration enables transmission data to becompressed.

The time difference data Dt are data relating to a time difference froma capture time tc1 at which detection signals are captured from the MRsensor element 24 until transmission data are transmitted.

A point of time at which the transmission data generation unit 54 storesthe time difference data Dt in transmission data is a point of time atwhich the transmission data are transmitted or earlier. Therefore, at apoint of time at which the transmission data generation unit 54generates the transmission data, the transmission data generation unit54 cannot clock a point of time at which the transmission data aretransmitted. Thus, the transmission data generation unit 54 may, forexample, generate time difference data Dt indicating a time differencefrom the capture time tc1 to the completion of generation oftransmission data.

Processing time t required for the transmission unit 55 to transmit thetransmission data is a known fixed processing time. Therefore, the timedifference data Dt with the processing time t added thereto canindirectly represent a time difference from the capture time tc1 untilthe transmission data are transmitted.

The transmission data generation unit 54 receives the detected angle θcfrom the rotation angle calculation unit 50 and stores the rotationangle data Da and the status information in transmission data. Thetransmission data generation unit 54 acquires a time te that theclocking unit 53 clocks, and stores time difference data Dt indicating atime difference td=te−tc in the transmission data and thereby ends thegeneration of the transmission data.

Note that, when a period of time required to complete the generation oftransmission data after the reception of a detected angle θc is a knownfixed period, a generation completion time of the transmission data maybe predicted by acquiring a time that the clocking unit 53 clocked at areception timing of the detected angle θc. Alternatively, when a periodof time required to complete the generation of transmission data afterthe storage of the rotation angle data Da and the status information inthe transmission data is a known fixed period, a generation completiontime of the transmission data may be predicted by acquiring a time thatthe clocking unit 53 clocked at a storage timing of the data.

When the transmission data in which the rotation angle data Da and thetime difference data Dt are stored are generated by the transmissiondata generation unit 54, the transmission unit 55 outputs thetransmission data to the outside in a known processing time t from thegeneration completion time of the transmission data. For example, thetransmission unit 55 transmits the transmission data to the externalmeasurement device 43 in the calibration device 40.

Note that a transmission mode in which the transmission unit 55transmits the rotation angle data Da and the time difference data Dt isnot limited to the above-described mode. The transmission datageneration unit 54 may generate time difference data Dt after havingtransmitted the rotation angle data Da, and the transmission unit 55 maytransmit the time difference data Dt after having transmitted therotation angle data Da. In this case, the transmission data generationunit 54 may acquire a time that the clocking unit 53 clocks at a pointof time at which the transmission unit 55 transmits the rotation angledata Da and may generate time difference data Dt that directly representa time difference from a capture time tc1 at which detection signalswere captured from the MR sensor element 24 to the transmission of therotation angle data Da.

The rotation angle data Da and the time difference data Dt are used forthe calibration device 40 to generate calibration data Dc. The controldevice 30 has a calibration data reception mode of receiving thecalibration data Dc as one of the operation modes of the control device30.

In the calibration data reception mode, the reception unit 56 and thecalibration data acquisition unit 57 operate.

The reception unit 56 receives calibration data Dc from the outside. Forexample, the reception unit 56 receives the calibration data Dc from theexternal measurement device 43 in the calibration device 40.

The calibration data acquisition unit 57 stores the calibration data Dcthat the reception unit 56 has received in the storage device 32.

Next, the calibration device 40 that generates the calibration data Dcwill be described. FIG. 1 is now referred to. The calibration device 40includes a drive motor 41, a rotation angle measurement unit 42, and theexternal measurement device 43.

A rotation shaft 44 of the drive motor 41 is joined to the rotationshaft 11 of the motor 10 by means of a joining portion 45. The drivemotor 41 causes the rotation shaft 11 of the motor 10 to rotate byrotating the rotation shaft 44 and changes the rotation angle θm of therotation shaft 11 to various angles.

The rotation angle measurement unit 42 generates a reference anglemeasurement signal Sr for measuring a reference angle θr that serves asa reference for calibration of the rotation angle calculation device(that is, calibration of a detected angle θc). For example, the rotationangle measurement unit 42 generates a signal for measuring a rotationangle of the rotation shaft 44 of the drive motor 41, which is joined tothe rotation shaft 11 of the motor 10, as a reference angle measurementsignal Sr. The rotation angle measurement unit 42 outputs the referenceangle measurement signal Sr to the external measurement device 43.

The rotation angle measurement unit 42 may, for example, be an encoderthat outputs pulses the number of which depends on the amount ofrotation of the rotation shaft 44, as a reference angle measurementsignal Sr. The external measurement device 43 may measure a referenceangle θr by counting (accumulating) the number of pulses that therotation angle measurement unit 42 outputs.

Note that the rotation angle measurement unit 42 is not limited to anencoder and maybe a rotation angle measurement device of another type(for example, a rotation angle measurement device that has beencalibrated) or the like.

The external measurement device 43 generates calibration data Dc, basedon the rotation angle data Da and the time difference data Dt, which aretransmitted by the control device 30, and the reference anglemeasurement signal Sr and transmits the generated calibration data Dc tothe control device 30.

The external measurement device 43 includes a processor 46 that is aCPU, an MPU, or the like, a storage device 47 that is a memory or thelike, a communication I/F circuit 48, and an interface circuit (I/F) 49.

The external measurement device 43 receives the rotation angle data Daand the time difference data Dt from the control device 30 via thecommunication I/F circuit 48. In addition, the external measurementdevice 43 transmits the calibration data Dc to the control device 30 viathe communication I/F circuit 48.

The external measurement, device 43 receives the reference anglemeasurement signal Sr from the rotation angle measurement unit 42 viathe I/F 49.

Functions of the external measurement device 43 that will be describedbelow are achieved by, for example, the processor 46 executing computerprograms stored in the storage device 47.

The external measurement device 43 may be formed using dedicatedhardware for performing respective parts of information processing,which will be described below, in addition to or in place of theprocessor 46.

For example, the external measurement device 43 may include functionallogic circuits that are set in a general-purpose semiconductorintegrated circuit. For example, the external measurement device 43 mayinclude a PLD, such as an FPGA.

With reference to FIG. 8, an example of a functional configuration ofthe external measurement device 43 will be described. The externalmeasurement device 43 includes a reception unit 70, a rotation anglemeasurement unit 71, a clocking unit 72, a capture time calculation unit73, a calibration data generation unit 74, and a transmission unit 75.

The reception unit 70 receives transmission data that are transmittedfrom the control device 30. The reception unit 70 outputs rotation angledata Da included in the transmission data to the calibration datageneration unit 74 and outputs time difference data Dt included in thetransmission data to the capture time calculation unit 73.

The rotation angle measurement unit 71 receives the reference anglemeasurement signal Sr output from the rotation angle measurement unit 42and measures a reference angle θr, based on the reference anglemeasurement signal Sr. The rotation angle measurement unit 71 maymeasure a reference angle θr by counting (accumulating) the number ofpulses that are output from the rotation angle measurement unit 71,which is an encoder.

The clocking unit 72 clocks time. For example, the clocking unit 72 mayclock an elapsed period from a predetermined point of time or may clockthe current time.

Note that the clocking unit 72 in the external measurement device 43does not necessarily have to he synchronous with the clocking unit 53 inthe control device 30. In other words, times that the clocking unit 72and the clocking unit 53 respectively clock at the same point of timemay be different from each other. For example, a time difference betweentimes that the clocking unit 72 and the clocking unit 53 respectivelyclock at the same point of time may be longer than a period ofmeasurement by the rotation angle measurement unit 71 (for example, aninterval between pulses output from the rotation angle measurement unit71, which is an encoder).

The capture time calculation unit 73, by monitoring a communication line(such as a bus) through which the control device 30 transmitstransmission data to the external measurement device 43, performshigh-speed monitoring of timing at which the control device 30 transmitstransmission data. The capture time calculation unit 73 acquires a timethat the clocking unit 72 clocks at a timing at which transmission dataare transmitted, as a transmission time tt of the transmission data.

Alternatively, the acquisition time calculation unit 73 may, byperforming high-speed monitoring of timing at which the reception unit70 receives transmission data, acquires a time that the clocking unit 72clocks at a timing at which transmission data are received, as atransmission time tt of the transmission data.

The capture time calculation unit 73 calculates a time (hereinafter,referred to as “capture time tc2”) that would have been acquired if theclocking unit 72 in the external measurement device 43 had clocked acapture time of detection signals from the MR sensor element 24, basedon the transmission time tt and the time difference data Dt. In otherwords, the capture time calculation unit 73 calculates a capture timetc2 of detection signals from the MR sensor element 24 as a time that isclocked by the clocking unit 72.

For example, the capture time calculation unit 73 calculates, as thecapture time tc2, a time obtained by going back in time from thetransmission time tt by a time difference from the capture time tc1 ofdetection signals from the MR sensor element 24 until transmission dataare transmitted, the time difference being obtainable based on the timedifference data Dt.

For example, the capture time calculation unit 73 calculates, as thecapture time tc2, a time obtained by going back in time from thetransmission time tt by a time length obtained by adding a knownprocessing time t required for the transmission unit 55 to transmittransmission data to a time difference td indicated by the timedifference data Dt.

In addition, for example, when, as described above, the time differencedata Dt, which directly represents a time difference from the capturetime tc1 of detection signals from the MR sensor element 24 until therotation angle data Da are transmitted, are transmitted after thetransmission of the rotation angle data Da, the capture time calculationunit 73 calculates, as the acquisition time tc2, a time obtained bygoing back in time from the transmission time tt by a time differenceindicated by the time difference data Dt.

The calibration data generation unit 74 receives the reference angle θr,which the rotation angle measurement unit 71 outputs. In addition, thecalibration data generation unit 74 acquires a time that the clockingunit 72 clocked at a timing at which the reference angle θr wasmeasured, as a measurement time tm of the reference angle θr. Forexample, the calibration data generation unit 74 acquires a time atwhich pulses were output from the rotation angle measurement unit 71,which is an encoder, as a measurement time tm. The calibration datageneration unit 74 stores the reference angle θr in association with themeasurement time tm.

The calibration data generation unit 74 searches stored reference anglesθr at respective measurement times tm for a reference angle θr that wasmeasured at the capture time tc2 by comparing the capture time tc2 andthe measurement times tm with each other.

In other words, the calibration data generation unit 74 searches for areference angle θr that is synchronized with detection signals from theMR sensor element 24 captured at the capture time tc2. In other words,the calibration data generation unit 74 searches for a reference angleθr that is synchronized with a detected angle θc indicated by therotation angle data Da.

Note that the above-described “reference angle θr that was measured atthe capture time tc2” may be a reference angle θr at a measurement timetm closest to the capture time tc2 or a reference angle θr at ameasurement time tm within a predetermined allowable time range from thecapture time tc2.

The calibration data generation unit 74 calculates a difference (θc−θr)between the detected angle θc, indicated by the rotation angle data Da,and the reference angle θr and generates calibration data Dc byassociating the difference (θc−θr) with the detected angle θc. Thecalibration data generation unit 74 may reconstruct calibration data Dcfrom a plurality of acquired detected angles θc and a plurality ofpieces of calibration data Dc corresponding thereto, using aninterpolation method or the like. This configuration enables finercalibration data Dc to be acquired.

With reference to FIG. 9, an example of operation of the control device30 and the external measurement device 43 will be described.

At time t10, the ADC 33 and the ADC 34 start conversion of detectionsignals (a sine signal SIN and a cosine signal COS) from the MR sensorelement 24. The transmission data generation unit 54 in the controldevice 30 acquires time t10 as a capture time tc1.

Note that times t10 to t19 in FIG. 9 represent times on the time axisthat are clocked by the clocking unit 53 in the control device 30. Notealso that times t20 to t23 represent times on the time axis that areclocked by the clocking unit 72 in the external measurement device 43.

When the conversion processing by the ADC 33 and the ADC 34 is completedat time t11, the rotation angle calculation unit 50 in the controldevice 30 starts calculation of a detected angle θc of the rotationangle of the rotation shaft 11 of the motor 10. The calculation of thedetected angle θc is completed at time t12.

When the calculation of the detected angle θc is completed, thetransmission data generation unit 54 starts generation of transmissiondata including rotation angle data Da indicating the detected angle θc,time difference data Dt, and status information at subsequent time t13and completes the generation of the transmission data at time t14. Forexample, in the transmission data, time difference data Dt indicating atime difference td1=(t14−t10) from the capture time tc1 (t10) to thecompletion time t14 of the generation of the transmission data arestored.

When the generation of the transmission data is completed at time t14,the transmission unit 55 in the control device 30 transmits thetransmission data to the external measurement device 43 in a knownprocessing time t from time t14.

When the transmission data are transmitted from the control device 30,the capture time calculation unit 73 detects the transmission of thetransmission data at time t21 that is clocked by the clocking unit 72 inthe external measurement device 43 and acquires time t21 as atransmission time tt at which the transmission data were transmitted.

A time at which the processing time t has elapsed since time t14 andtime t21 (time tt) are times obtained by the clocking unit 53 in thecontrol device 30 and the clocking unit 72 in the external measurementdevice 43 having respectively clocked an identical time at which thetransmission data were transmitted.

Thus, the capture time calculation unit 73 in the external measurementdevice 43 calculates time t20 that is obtained by going back in timefrom the transmission time t21 by a time length (td1+t) obtained byadding the processing time t to a time difference td1 indicated by thetime difference data Dt (as illustrated in a row “timing processing” inFIG. 9).

This processing enables the capture time calculation unit 73 to acquirea capture time tc2 (time t20) that would have been acquired if theclocking unit 72 had clocked a capture time of detection signals fromthe MR sensor element 24.

The calibration data generation unit 74 generates calibration data Dc byassociating a difference (θc−θr) between the reference angle θr measuredat the capture time tc2 (t20) and the detected angle θc indicated by therotation angle data Da with the detected angle θc.

Subsequently, the control device 30, as with the operation during aperiod from time t10 to time t14, converts detection signals from the MRsensor element 24 to digital signals (during a period from time t15 totime t16), calculates a detected angle θc (during a period from time t16to time t17), generates transmission data (during a period from time t18to time t19), and transmits the transmission data to the externalmeasurement device 43 (during a period from time t19 to time t19+t).

The external measurement device 43 acquires time t23 as a transmissiontime tt at which the transmission data are transmitted.

In addition, the external measurement device 43 acquires time t22 thatis obtained by going back in time from the transmission time t23 by atime length (td2+t) obtained by adding the processing time t to a timedifference td2 indicated by time difference data Dt, as a capture timetc2 that would have been acquired if the clocking unit 72 had clocked acapture time of the detection signals from the MR sensor element 24.

The external measurement device 43 generates calibration data Dc byassociating a difference (θc−θr) between a reference angle θr measuredat the capture time tc2 (t22) and the detected angle θc indicated byrotation angle data Da with the detected angle θc.

Calculating a capture time tc2 of detection signals from the MR sensorelement 24 as a time that is clocked by the clocking unit 72 in theexternal measurement device 43 as described above enables a referenceangle θr that is synchronized with a detected angle θc indicated byrotation angle data Da to be acquired.

This configuration enables a reference angle θr that is synchronizedwith a detected angle θc indicated by rotation angle data Da to beacquired even when the clocking unit 53 in the control device 30 isasynchronous with the clocking unit 72 in the external measurementdevice 43.

Note that a time difference (td1+t or td2+t) from a capture time tc1 ofdetection signals from the MR sensor element 24 until transmission dataare transmitted sometimes varies depending on transmission data. Forexample, in the example illustrated in FIG. 9, the first waiting time(from t12 to t13) after the detected angle θc was calculated until thegeneration of transmission data is started is longer than the secondwaiting time (from t17 to t18) because, for example, the control device30 performs other processing in parallel with the data generation.

As described above, even when a time difference (td1+t or td2+t) variesdepending on transmission data, calculating a capture time tc2, based onthe time difference data Dt enables synchronization between a detectedangle θc indicated by the rotation angle data Da and a reference angleθr to be secured.

As described above, the calibration system 1 of the present embodimentenables synchronization between detection signals from the MR sensorelement 24 captured by the control device 30 and a reference angle θrmeasured by the external measurement device 43, which is a separateentity from the control device 30, to be secured and calibration data Dcof the rotation angle calculation device to be generated according tothe detection signals and the reference angle θr.

FIG. 8 is now referred to. The transmission unit 75 in the externalmeasurement device 43 transmits the calibration data Dc that thecalibration data generation unit 74 generated to the control device 30.

Note that it is preferable to determine whether or not the detectedangle θc corrected using the calibration data Dc falls within apredetermined error range after the calibration data Dc have beentransmitted to the control device 30.

For this purpose, the control device 30 may have a second data outputmode of outputting a calibrated angle θcc that is obtained by correctingthe detected angle θc, based on the calibration data Dc.

In the second data output mode, detection signals are captured from theMR sensor element 24 again, a detected angle θc is calculated by therotation angle calculation unit 50, and the detected angle θc iscorrected based on the calibration data Dc by the correction unit 51 anda calibrated angle θcc is thereby calculated.

The transmission data generation unit 54 generates transmission data inwhich rotation angle data Da indicating, in place of a detected angle θcbefore being corrected by the correction unit 51, the calibrated angleθcc are stored.

In other words, the transmission data generation unit 54 generatestransmission data including at least the rotation angle data Daindicating the calibrated angle θcc and Dt relating to a time differencefrom the capture time tc1 at which detection signals were captured fromthe MR sensor element 24 until the transmission data are transmitted.

When receiving the transmission data including the rotation angle dataDa indicating the calibrated angle θcc, the external measurement device43 calculates a capture time tc2 of detection signals from the MR sensorelement 24 as a time that is clocked by the clocking unit 72 in theexternal measurement device 43, in a similar manner to the processingdescribed above.

The external measurement device 43 calculates an error (θcc−θr) betweena reference angle θr measured at the capture time tc2 and the calibratedangle θcc indicated by the rotation angle data Da and, when the error(θcc−θr) does not fall within a predetermined error range, generatescalibration data Dc again. When the error (θcc−θr) falls within thepredetermined error range, the external measurement device 43 ends thegeneration of the calibration data Dc.

(Calibration Method For Rotation Angle Calculation Device)

Next, with reference to FIG. 10, a calibration method for the rotationangle calculation device of the embodiment will be described.

In step S1, the ADC 33 and the ADC 34 capture detection signals from theMR sensor element 24 into the control device 30 by converting thedetection signals to digital signals. The transmission data generationunit 54 in the control device 30 acquires a capture time tc1 of thedetection signals from the MR sensor element 24, using the clocking unit53.

Meanwhile, the rotation angle measurement unit 71 in the externalmeasurement device 43 measures a reference angle θr. The calibrationdata generation unit 74 acquires a measurement time tm of the referenceangle θr, using the clocking unit 72.

In step S2, the rotation angle calculation unit 50 in the control device30 calculates a detected angle θc of the rotation angle of the rotationshaft 11 of the motor 10, based on output signals from the ADC 33 andthe ADC 34.

In step S3, the transmission data generation unit 54 generatestransmission data in which rotation angle data Da indicating thedetected angle θc and time difference data Dt are stored. As describedabove, the time difference data Dt are data relating to a timedifference from the capture time tc1 until the rotation angle data Daare transmitted.

In step S4, the transmission unit 55 in the control device 30 transmitsthe transmission data to the external measurement device 43 in thecalibration device 40. The reception unit 70 in the external measurementdevice 43 receives the transmission data.

On this occasion, the capture time calculation unit 73 in the externalmeasurement device 43 acquires a time at which the control device 30transmits the transmission data or a time at which the reception unit 70receives the transmission data, using the clocking unit 72 as atransmission time tt of the transmission data.

In step S5, the capture time calculation unit 73 calculates a capturetime tc2 at which the control device 30 captured the detection signalsfrom the MR sensor element 24, based on the transmission time tt and thetime difference data Dt, as a time that is clocked by the clocking unit72.

In step S6, the calibration data generation unit 74 generatescalibration data Dc by comparing the reference angle θr measured at thecapture time tc2 and the detected angle θc indicated by the rotationangle data Da with each other.

In step S7, the calibration data generation unit 74 determines whetheror not calibration data Dc for one rotation of the rotation shaft 11 ofthe motor 10 have been acquired. When calibration data Dc for onerotation have not been acquired yet (step S7: N), the process proceedsto step S8. When calibration data Dc for one rotation have been acquired(step S7: Y), the process proceeds to step S9.

In step S8, the rotation angle θm of the rotation shaft 11 of the motor10 is changed by causing the drive motor 41 to rotate. Subsequently, theprocess returns to step S1.

In step S9, whether or net values obtained by correcting detected anglesθc calculated by the rotation angle calculation unit 50, using thecalibration data Dc generated in steps S1 to S8 fall within apredetermined error range is determined.

Specifically, the operation mode of the control device 30 is switched tothe second data output mode, and calibrated angles θcc that are obtainedby correcting detected angles θc, based on the calibration data Dc aretransmitted from the control device 30 to the external measurementdevice 43.

The external measurement device 43 calculates errors (θcc−θr) betweenthe reference angles θr and the calibrated angles θcc and determineswhether or not the errors (θcc−Θr) fall within a predetermined errorrange across the rotation angle range of the rotation shaft 11.

When an error (θcc−θr) does not fall within the predetermined errorrange (step S9: N), the process returns to step S1 and the calibrationdata Dc are generated again. When the errors (θcc−θr) fall within thepredetermined error range (step SS: Y), the process terminates.

Although, in step S7, whether or not calibration data Dc for onerotation are acquired is determined, it may be configured such thatcalibration data Dc for one period or more are acquired. In this case, aplurality of pieces of calibration data Dc acquired for each detectedangle θc may be averaged and the averaged values may be used ascalibration data Dc. This configuration enables noise to be reduced.

(Application of Rotation Angle Sensor)

Next, with reference to FIG. 11, a configuration example in a case wherethe rotation angle calculation device of the present embodiment isapplied to an electric power steering device that controls steeringassist force provided to the steering system of a vehicle will bedescribed.

A column shaft 102 of a steering wheel 101 is connected to tie rods 106of steered wheels via a reduction gear 103, universal joints 104A and104B, and a pinion rack mechanism 105. To the column shaft 102, a torquesensor 110 that detects steering torque Th of the steering wheel 101 isdisposed, and the motor 10 that assists steering force of the steeringwheel 101 is connected to the column shaft 102 via the reduction gear103.

The above-described control device 30 is used as an electronic controlunit that controls the power steering device. To the control device 30,power is supplied from a battery 114 that is a power source and anignition key signal is also input from an ignition key 111.

The control device 30 calculates a steering angle θ of the steeringwheel 101, based on the rotation angle θm of the motor 10 that iscalculated as described above and a reduction ratio N of the reductiongear 103. The control device 30 performs calculation of a steeringassist command value of an assist command, using an assist map or thelike, based on the steering angle θ, the steering torque Th, vehiclespeed Vh that is detected by a vehicle speed sensor 112 and controlscurrent I that is supplied to the motor 10, based on the calculatedsteering assist command value.

In the electric power steering device having such a configuration, thesteering torque Th that is generated by steering operation by the driverand transmitted from the steering wheel 101 is detected by the torquesensor 110, a steering angle θ is calculated based on the rotation angleθm of the motor 10, the motor 10 is drive-controlled by a steeringassist command value calculated based on the steering torque Th, thesteering angle θ, and the vehicle speed Vh, and this drive is providedto the steering system as an assist force (steering assist force) forthe steering operation by the driver.

(Advantageous Effects of Embodiment)

(1) The calibration system 1 includes the rotation angle calculationdevice configured to calculate a rotation angle of a rotating body,based on detection signals output from the MR sensor element 24depending on rotation of the rotating body and the calibration device 40for calibrating the rotation angle calculation device. The rotationangle calculation device includes the sensor unit 20 in which the MRsensor element 24 is mounted and the control device 30.

The control device 30 calculates a rotation angle of the rotating body,based on detection signals from the MR sensor element 24 and transmitsrotation angle data Da indicating the rotation angle from the controldevice 30 to the calibration device 40.

In addition, the control device 30 transmits time difference data Dtrelating to a time difference after having captured detection signalsfrom the MR sensor element 24 until transmitting the rotation angle dataDa from the control device 30 to the calibration device 40.

The calibration device 40 measures a rotation angle θr of the rotatingbody and clocks a measurement time tm at which the rotation angle θr ismeasured and a transmission time tt at which the rotation angle data Daare transmitted or received.

The calibration device 40 acquires calibration data Dc of the rotationangle data Da by comparing the rotation angle θr that the calibrationdevice 40 measured at a time tc2 obtained by going back in time from thetransmission time tt by a time difference after having captureddetection signals from the MR sensor element 24 until transmitting therotation angle data Da and the rotation angle data Da with each other.

This configuration enables, with synchronization secured between arotation angle calculated by the rotation angle calculation device and arotation angle measured by the calibration device 40, which is separatefrom the rotation angle calculation device, calibration data for therotation angle calculation device to be generated.

For example, even when the clocking unit 53 in the rotation anglecalculation device is asynchronous with the clocking unit 72 in thecalibration device 40, it is possible to secure synchronization betweena rotation angle calculated by the rotation angle calculation device anda rotation angle measured by the calibration device 40, which isseparate from the rotation angle calculation device.

(2) The control device 30 transmits transmission data in which therotation angle data Da and the time difference data Dt are stored in thesame frame to the calibration device 40. This configuration enablesoverheads of communication to be reduced compared with a case where therotation angle data Da and the time difference data Dt are, while storedin separate frames, transmitted. Since, as a result, it is possible toincrease a transmission frequency of the rotation angle data Da, it ispossible to reduce time required for calibration processing.

(3) The control device 30, after having generated transmission data inwhich the rotation angle data Da are stored and that are to betransmitted to the calibration device 40, transmits the transmissiondata to the calibration device 40 in a known processing time t. Thecontrol device 30 generates time difference data Dt indicating a timedifference after having captured detection signals from the MR sensorelement 24 until completing generation of transmission data.

Because of this configuration, adding a known processing time t to atime difference indicated by the time difference data Dt enables a timelength after detection signals were acquired from the MR sensor element24 until the transmission data are transmitted to be indirectlyrepresented. As a result, it is possible to store information on a timedifference until the transmission data are transmitted in thetransmission data.

(4) The calibration device 40 causes the drive motor 41 to rotate arotating foody and acquires calibration data Dc at a plurality ofrotation angles of the rotating body.

This configuration enables calibration data Dc at a plurality ofdifferent rotation angles of the rotating body to be generated.

REFERENCE SIGNS LIST

-   1 Calibration system-   10 Motor-   11 Rotation shaft-   12 Output end-   14 End-   20 Sensor unit-   21 Magnet-   22 Circuit board-   23 Support member-   24 MR sensor element-   25 Harness-   30 Control device-   31 Processor-   32 Storage device-   33, 34 Analog-digital converter (ADC)-   35 Drive circuit-   36 Communication I/F circuit-   40 Calibration device-   41 Drive motor-   42 Rotation angle measurement unit-   43 External measurement device-   44 Rotation shaft-   45 Joining portion-   46 Processor-   47 Storage device-   48 Communication I/F circuit-   49 I/F-   50 Rotation angle calculation unit-   51 Correction unit-   52 Driving signal generation unit-   53 Clocking unit-   54 Transmission data generation unit-   55 Transmission unit-   56 Reception unit-   57 Calibration data acquisition unit-   60 Adder-   61 Subtracter-   62 Calculation unit-   70 Reception unit-   71 Rotation angle measurement unit-   72 Clocking unit-   73 Capture time calculation unit-   74 Calibration data generation unit-   75 Transmission unit-   101 Steering wheel-   102 Column shaft-   103 Reduction gear-   104A, 104B Universal join-   105 Pinion rack mechanism-   106 Tie rod-   110 Torque sensor-   111 Ignition key-   112 Vehicle speed sensor-   114 Battery

1. A calibration method for a rotation angle calculation deviceconfigured to calculate a rotation angle of a rotating body, based on adetection signal output from a sensor depending on rotation of therotating body, the method comprising: the rotation angle calculationdevice calculating a rotation angle of the rotating body, based on thedetection signal; transmitting rotation angle data indicating therotation angle from the rotation angle calculation device to acalibration device; transmitting time difference data relating to a timedifference after having captured the detection signal from the sensoruntil transmitting the rotation angle data from the rotation anglecalculation device to the calibration device; the calibration devicemeasuring a rotation angle of the rotating body; clocking a measurementtime at which the calibration device measures a rotation angle of therotating body and a transmission time at which the rotation angle dataare transmitted or received, using the calibration device; and acquiringcalibration data of the rotation angle data by comparing a rotationangle of the rotating body measured by the calibration device at a timeobtained by going back in time from the transmission time by the timedifference and the rotation angle data with each other.
 2. Thecalibration method according to claim 1, wherein the rotation anglecalculation device transmits transmission data in which the rotationangle data and the time difference data are stored in a same frame tothe calibration device.
 3. The calibration method according to claim 2,wherein the rotation angle calculation device generates the timedifference data indicating a time difference after having captured thedetection signal from the sensor until completing generation of thetransmission data and transmits the transmission data to the calibrationdevice in a known processing time after having completed generation ofthe transmission data.
 4. The calibration method according to claim 1,comprising: rotating the rotating body; and acquiring the calibrationdata at a plurality of rotation angles of the rotating body.
 5. Acalibration device for a rotation angle calculation device configured tocalculate a rotation angle of a rotating body, based on a detectionsignal output from a sensor depending on rotation of the rotating body,comprising: a reception unit configured to receive, from the rotationangle calculation device, rotation angle data indicating a rotationangle of the rotating body calculated based on the detection signal andtime difference data relating to a time difference after the rotationangle calculation device having captured the detection signal from thesensor until transmitting the rotation angle data; a rotation anglemeasurement unit configured to measure a rotation angle of the rotatingbody; a clocking unit configured to clock a measurement time at whichthe rotation angle measurement unit measures a rotation angle of therotating body and a transmission time at which the rotation angle dataare transmitted or received; and a calibration data generation unitconfigured to generate calibration data of the rotation angle data bycomparing a rotation angle of the rotating body measured by the rotationangle measurement unit at a time obtained by going back in time from thetransmission time by the time difference and the rotation angle datawith each other.
 6. A rotation angle calculation device comprising: asensor configured to output a detection signal depending on rotation ofa rotating body; a rotation angle calculation unit configured tocalculate a rotation angle of the rotating body, based on the detectionsignal; a reception unit configured to receive calibration data forcalibration of a rotation angle of the rotating body calculated by therotation angle calculation unit; a storage unit configured to store thereceived calibration data; a correction unit configured to correct arotation angle of the rotating body calculated by the rotation anglecalculation unit with the calibration data stored in the storage unit;and a transmission unit configured to transmit rotation angle dataindicating the rotation angle calculated by the rotation anglecalculation unit and not corrected by the correction unit and to alsotransmit time difference data relating to a time difference after havingcaptured the detection signal from the sensor until transmitting therotation angle data.
 7. A motor control device comprising: the rotationangle calculation device according to claim 6 configured to calculate arotation angle of a rotation shaft of a motor as the rotating body; anda driving unit configured to drive the motor according to a rotationangle of the rotating shaft corrected by the correction unit.
 8. Anelectric actuator product comprising: the motor control device accordingto claim 7; and a motor controlled by the motor control device.
 9. Anelectric power steering device comprising: the motor control deviceaccording to claim 7; and a motor controlled by the motor controldevice, wherein a steering assist force is provided to a steering systemof a vehicle by the motor.